# -*- coding: utf-8 -*-
"""
author:码同学 极光
date:2022-12-28
desc: 
sample: 
"""
import random

number1 = random.randrange(1, 100)
print(number1)

while True:
    try:
        number2 = input("请输入数字>>> ")
        if number1 == int(number2):
            print("猜对了")
            break
        else:
            print("请继续输入数字")
    except:
        print("请输入数字")

